﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmLaboratorio.aspx.cs" Inherits="PharmacyWeb.Almacen.frmLaboratorio" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server"><asp:Panel ID="Panel2" runat="server"><b><h5>.: Liz Vigo:.</h5></b></asp:Panel>
    <asp:TextBox runat="server" ID="txtinfo" Text="Creador"></asp:TextBox>
    <ajaxToolkit:BalloonPopupExtender runat="server" BalloonStyle="Cloud" BalloonPopupControlID="Panel2" ExtenderControlID="" CustomCssUrl="" DynamicServicePath="" Enabled="True" TargetControlID="txtinfo" ID="txtinfo_BalloonPopupExtender"></ajaxToolkit:BalloonPopupExtender>
    <div class="panel panel-success">
        <div class="row clear-fix">
            <asp:FormView ID="fvLaboratorio" DefaultMode="Edit" runat="server"
                ItemType="PharmacyBussinesEntities.Laboratorio" Width="100%"
                SelectMethod="GetLaboratorio"
                UpdateMethod="UpdateLaboratorio"
                InsertMethod="InsertLaboratorio">
                
                <EditItemTemplate>
                    <fieldset>
                        <legend>Editar Laboratorio</legend>
                        <div class="form-horizontal" role="form">
                        <div class="form-group">
                            <label class="col-sm-1 control-label">ID</label>
                            <div class="col-sm-5">
                                <asp:TextBox ID="txtId"
                                    Text="<%# BindItem.Id %>"
                                    CssClass="form-control input-sm"
                                    ReadOnly="True"
                                    runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <div class="form-control">
                            <label class="col-sm-1 control-label">Nombre</label>
                            <div class="col-sm-5">
                                <asp:TextBox ID="txtNombre" Text="<%# BindItem.Nombre %>"
                                    CssClass="form-control input-sm" runat="server"></asp:TextBox>
                            </div>
                        </div>
                         <div class="form-control">
                            <label class="col-sm-1 control-label">Descripcion</label>
                            <div class="col-sm-5">
                                <asp:TextBox ID="txtDescripcion" Text="<%# BindItem.Descripcion %>"
                                    CssClass="form-control input-sm" runat="server"></asp:TextBox>
                            </div>
                        </div>
                            <div class="form-group">
                                <div class="col-sm-offset-1 col-sm-5">
                                    <asp:Button ID="btnGuardar"
                                        Text="Guardar"
                                        CommandName="update"
                                        CssClass="btn btn-success btn-sm"
                                        runat="server"/>
                                    <a href="frmListLaboratorio" class="btn btn-danger btn-sm">Cancelar</a>
                                </div>
                            </div>
                            </div>
                        <asp:ValidationSummary ID="ValidationSumary1" runat="server"
                            ShowModelStateErrors="True"/>
                    </fieldset>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <fieldset>
                        <legend> Registrar nuevo laboratorio </legend>
                        <div class="form-horizontal" role="form">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">ID</label>
                                <div class="col-sm-5">
                                <asp:TextBox ID="txtId"
                                    Text="0"
                                    ReadOnly="True"
                                    CssClass="form-control input-sm"
                                    runat="server"></asp:TextBox>
                              </div>
                            </div>
                             <div class="form-group">
                                <label class="col-sm-1 control-label">Nombre</label>
                                <div class="col-sm-5">
                                <asp:TextBox ID="txtNombre"
                                    Text="<%# BindItem.Nombre %>"
                                    CssClass="form-control input-sm"
                                    runat="server"></asp:TextBox>
                              </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">Descripcion</label>
                                <div class="col-sm-5">
                                <asp:TextBox ID="txtDescripcion"
                                    Text="<%# BindItem.Descripcion %>"
                                    CssClass="form-control input-sm"
                                    runat="server"></asp:TextBox>
                              </div>
                              </div>
                            <div class="form-group">
                                <div class="col-sm-offset-1 col-sm-5">
                                <asp:Button ID="btnGuardar"
                                    Text="Guardar"
                                    CommandName="insert"
                                    CssClass="btn btn-success btn-sm"
                                    runat="server"></asp:Button>
                                    <a href="frmListLaboratorio" class="btn btn-danger btn-sm">Cancelar</a>
                              </div>
                        </div>
                     </div>
                        <asp:ValidationSummary ID="ValidationSumary1"
                            runat="server"
                            ShowModelStateErrors="True"/>
                    </fieldset>
                </InsertItemTemplate>
            </asp:FormView>
                    

        </div>
        
    </div>
</asp:Content>
